package com.knowledge.graph.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.knowledge.graph.model.entity.GradeAndCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GradeAndCourseMapper extends BaseMapper<GradeAndCourse> {
    @Select("select course_id from grade_and_course where grade_id = #{queryGradeId}")
    List<Long> selectByGradeId(Long queryGradeId);
}
